
function qryProduct(){
	$.getJSON("/loadPro",{name:$id("handle_name").value},function(data){
		handle.fillElemFromBean($id("proTable"),data);
	});
}
function newOpt(data){
	var str="<button callFunc='click:editPro()'>编辑</button><button callFunc='click:delPro()'>删除</button>";
	return str;
}
function loadFrame_load(){
	table_hand.addFunc(bind.getKey(proTable)+"_opt",newOpt);
}
function editPro(){
	
}
function delPro(){
	var curNode=yqy.getTableRowBySub(proTable);
	yqy.myAlert("确定删除"+curNode.name,{isConfirm:true,Y:function(){
		
	}});
}
function addProduct(){
	openHandle.open({
		src:"/addPro",
		title:'新增产品',
		shadow:false
	});
}